export const getStyle = function (obj, attr) {
  if (window.getComputedStyle) {
    return window.getComputedStyle(obj, null)[attr];
  }
  return obj.currentStyle[attr];
};
